package com.lyt.springboot.designPattern.templatePattern;

// 信用卡支付类
class CreditCardPayment extends Payment {

    @Override
    protected void validatePaymentInfo() {
        System.out.println("Validating credit card info...");
    }

    @Override
    protected void executePayment() {
        System.out.println("Executing credit card payment...");
    }
}